package com.zhiche.lisa.lspm.dao.model.fleet;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车队
 * </p>
 *
 * @author qichao
 * @since 2018-08-15
 */
@TableName("lisa_fleet")
@ApiModel(value = "车队信息")
public class Fleet extends Model<Fleet> {

    private static final long serialVersionUID = 1L;
	@ApiModelProperty(value = "车队id",name="id",dataType = "Long")

	@TableId(value="id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;
    /**
     * 承运商ID
     */
	@ApiModelProperty(value = "承运商ID",name="lspId",dataType = "Long")
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 车队名称
     */
	@ApiModelProperty(value = "车队名称",name="fleetName",dataType = "String")
	@TableField("fleet_name")
	private String fleetName;
    /**
     * 车队描述
     */
	@ApiModelProperty(value = "fleetDescribe",name="车队描述",dataType = "String")
	@TableField("fleet_describe")
	private String fleetDescribe;
	/**
     * 车队属性
     */
	@ApiModelProperty(value = "fleetAttribute",name="车队属性, 0-临时, 1-正式",dataType = "Integer")
	@TableField("fleet_attribute")
	private Integer fleetAttribute;

	/**
	 * 所属人
	 */
	private String personal;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",name="gmtCreate",dataType = "Date")
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 修改时间
     */
	@ApiModelProperty(value = "修改时间",name="gmtUpdate",dataType = "Date")
	@TableField("gmt_update")
	private Date gmtUpdate;
    /**
     * 删除标识，默认0，若删除，置为1'
     */
	@TableField("is_delete")
	//@TableLogic
	private Integer isDelete;
    /**
     * 创建人
     */
	@ApiModelProperty(value = "创建人",name="creator",dataType = "String")
	private String creator;
    /**
     * 更新时间
     */
	@ApiModelProperty(value = "更新时间",name="gmtModify",dataType = "Date")
	@TableField("gmt_modify")
	private Date gmtModify;
	/**
	 * 车队类型Id
	 */
	@ApiModelProperty(value = "车队类型",name = "feetTypeId",dataType = "Long")
	@TableField("fleet_type_id")
	private Long fleetTypeId;

	/**
	 * 身份证号
	 */
	@TableField(exist = false)
	private String licenseId;
	/**
	 * 银行卡号
	 */
	@TableField(exist = false)
	private String bankAccount;
	/**
	 * 开户人名称
	 */
	@TableField(exist = false)
	private String bankAccountName;
	/**
	 * 开户银行
	 */
	@TableField(exist = false)
	private String bankName;
	/**
	 * 银行卡附件
	 */
	@TableField(exist = false)
	private String bankAttachType;
	/**
	 * 银行卡附件key
	 */
	@TableField(exist = false)
	private String bankAttachKey;
	/**
	 * 银行卡附件正面
	 */
	@TableField(exist = false)
	private String bankAttachStyle;
	/**
	 * 银行卡附件名称
	 */
	@TableField(exist = false)
	private String bankAttachName;
	/**
	 * 银行卡附件路径
	 */
	@TableField(exist = false)
	private String bankAttachPath;
	/**
	 * 银行卡附件1
	 */
	@TableField(exist = false)
	private String bankAttachType1;
	/**
	 * 银行卡附件key1
	 */
	@TableField(exist = false)
	private String bankAttachKey1;
	/**
	 * 银行卡附件反面1
	 */
	@TableField(exist = false)
	private String bankAttachStyle1;
	/**
	 * 银行卡附件名称1
	 */
	@TableField(exist = false)
	private String bankAttachName1;
	/**
	 * 银行卡附件路径1
	 */
	@TableField(exist = false)
	private String bankAttachPath1;
	/**
	 * 身份证附件
	 */
	@TableField(exist = false)
	private String licenseAttachType;
	/**
	 * 身份证附件key
	 */
	@TableField(exist = false)
	private String licenseAttachKey;
	/**
	 * 身份证附件正面
	 */
	@TableField(exist = false)
	private String licenseAttachStyle;
	/**
	 * 身份证附件名称
	 */
	@TableField(exist = false)
	private String licenseAttachName;
	/**
	 * 身份证附件路径
	 */
	@TableField(exist = false)
	private String licenseAttachPath;
	/**
	 * 身份证附件
	 */
	@TableField(exist = false)
	private String licenseAttachType1;
	/**
	 * 身份证附件key1
	 */
	@TableField(exist = false)
	private String licenseAttachKey1;
	/**
	 * 身份证附件反面1
	 */
	@TableField(exist = false)
	private String licenseAttachStyle1;
	/**
	 * 身份证附件名称1
	 */
	@TableField(exist = false)
	private String licenseAttachName1;
	/**
	 * 身份证附件路径1
	 */
	@TableField(exist = false)
	private String licenseAttachPath1;
	/**
	 * 承运商名
	 */
	@TableField(exist = false)
	private String lspName;

	/**
	 * 万金油账号
	 */
	@TableField(exist = false)
	private String oilCardAccount;

	public String getOilCardAccount() {
		return oilCardAccount;
	}

	public void setOilCardAccount(String oilCardAccount) {
		this.oilCardAccount = oilCardAccount;
	}

	public String getLspName() {
		return lspName;
	}

	public void setLspName(String lspName) {
		this.lspName = lspName;
	}

	public String getBankAttachType() {
		return bankAttachType;
	}

	public void setBankAttachType(String bankAttachType) {
		this.bankAttachType = bankAttachType;
	}

	public String getBankAttachKey() {
		return bankAttachKey;
	}

	public void setBankAttachKey(String bankAttachKey) {
		this.bankAttachKey = bankAttachKey;
	}

	public String getBankAttachStyle() {
		return bankAttachStyle;
	}

	public void setBankAttachStyle(String bankAttachStyle) {
		this.bankAttachStyle = bankAttachStyle;
	}

	public String getBankAttachName() {
		return bankAttachName;
	}

	public void setBankAttachName(String bankAttachName) {
		this.bankAttachName = bankAttachName;
	}

	public String getBankAttachPath() {
		return bankAttachPath;
	}

	public void setBankAttachPath(String bankAttachPath) {
		this.bankAttachPath = bankAttachPath;
	}

	public String getBankAttachType1() {
		return bankAttachType1;
	}

	public void setBankAttachType1(String bankAttachType1) {
		this.bankAttachType1 = bankAttachType1;
	}

	public String getBankAttachKey1() {
		return bankAttachKey1;
	}

	public void setBankAttachKey1(String bankAttachKey1) {
		this.bankAttachKey1 = bankAttachKey1;
	}

	public String getBankAttachStyle1() {
		return bankAttachStyle1;
	}

	public void setBankAttachStyle1(String bankAttachStyle1) {
		this.bankAttachStyle1 = bankAttachStyle1;
	}

	public String getBankAttachName1() {
		return bankAttachName1;
	}

	public void setBankAttachName1(String bankAttachName1) {
		this.bankAttachName1 = bankAttachName1;
	}

	public String getBankAttachPath1() {
		return bankAttachPath1;
	}

	public void setBankAttachPath1(String bankAttachPath1) {
		this.bankAttachPath1 = bankAttachPath1;
	}

	public String getLicenseAttachType() {
		return licenseAttachType;
	}

	public void setLicenseAttachType(String licenseAttachType) {
		this.licenseAttachType = licenseAttachType;
	}

	public String getLicenseAttachKey() {
		return licenseAttachKey;
	}

	public void setLicenseAttachKey(String licenseAttachKey) {
		this.licenseAttachKey = licenseAttachKey;
	}

	public String getLicenseAttachStyle() {
		return licenseAttachStyle;
	}

	public void setLicenseAttachStyle(String licenseAttachStyle) {
		this.licenseAttachStyle = licenseAttachStyle;
	}

	public String getLicenseAttachName() {
		return licenseAttachName;
	}

	public void setLicenseAttachName(String licenseAttachName) {
		this.licenseAttachName = licenseAttachName;
	}

	public String getLicenseAttachPath() {
		return licenseAttachPath;
	}

	public void setLicenseAttachPath(String licenseAttachPath) {
		this.licenseAttachPath = licenseAttachPath;
	}

	public String getLicenseAttachType1() {
		return licenseAttachType1;
	}

	public void setLicenseAttachType1(String licenseAttachType1) {
		this.licenseAttachType1 = licenseAttachType1;
	}

	public String getLicenseAttachKey1() {
		return licenseAttachKey1;
	}

	public void setLicenseAttachKey1(String licenseAttachKey1) {
		this.licenseAttachKey1 = licenseAttachKey1;
	}

	public String getLicenseAttachStyle1() {
		return licenseAttachStyle1;
	}

	public void setLicenseAttachStyle1(String licenseAttachStyle1) {
		this.licenseAttachStyle1 = licenseAttachStyle1;
	}

	public String getLicenseAttachName1() {
		return licenseAttachName1;
	}

	public void setLicenseAttachName1(String licenseAttachName1) {
		this.licenseAttachName1 = licenseAttachName1;
	}

	public String getLicenseAttachPath1() {
		return licenseAttachPath1;
	}

	public void setLicenseAttachPath1(String licenseAttachPath1) {
		this.licenseAttachPath1 = licenseAttachPath1;
	}

	public String getLicenseId() {
		return licenseId;
	}

	public void setLicenseId(String licenseId) {
		this.licenseId = licenseId;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getBankAccountName() {
		return bankAccountName;
	}

	public void setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public String getFleetName() {
		return fleetName;
	}

	public void setFleetName(String fleetName) {
		this.fleetName = fleetName;
	}

	public String getFleetDescribe() {
		return fleetDescribe;
	}

	public void setFleetDescribe(String fleetDescribe) {
		this.fleetDescribe = fleetDescribe;
	}

	public Integer getFleetAttribute() {
		return fleetAttribute;
	}

	public void setFleetAttribute(Integer fleetAttribute) {
		this.fleetAttribute = fleetAttribute;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtUpdate() {
		return gmtUpdate;
	}

	public void setGmtUpdate(Date gmtUpdate) {
		this.gmtUpdate = gmtUpdate;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public Long getFleetTypeId() {
		return fleetTypeId;
	}

	public void setFleetTypeId(Long fleetTypeId) {
		this.fleetTypeId = fleetTypeId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getPersonal() {
		return personal;
	}

	public void setPersonal(String personal) {
		this.personal = personal;
	}

	@Override
	public String toString() {
		return "Fleet{" +
				"id=" + id +
				", lspId=" + lspId +
				", fleetName='" + fleetName + '\'' +
				", fleetDescribe='" + fleetDescribe + '\'' +
				", fleetAttribute=" + fleetAttribute +
				", personal='" + personal + '\'' +
				", tenantId=" + tenantId +
				", gmtCreate=" + gmtCreate +
				", gmtUpdate=" + gmtUpdate +
				", isDelete=" + isDelete +
				", creator='" + creator + '\'' +
				", gmtModify=" + gmtModify +
				", fleetTypeId=" + fleetTypeId +
				"} " + super.toString();
	}
}
